package com.example.seakdreamandroid.firstPage;

import android.content.Context;
import android.text.Layout;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;

import androidx.recyclerview.widget.RecyclerView;

import com.example.seakdreamandroid.R;

/**
 * 何鸿辉
 * 推荐频道相关资源的集合
 */
public class RecommendChannelView {
    private String audioType;
    private RecyclerView recyclerView;
    private View v;
    private TextView title;

    public void setAudioType(String audioType){
        this.audioType = audioType;
    }

    public String getAudioType() {
        return audioType;
    }

    public RecyclerView getRecyclerView() {
        return recyclerView;
    }

    public View getV() {
        return v;
    }

    public RecommendChannelView(String audioType, View v){
        this.audioType = audioType;
        this.v = v;
        this.title = v.findViewById(R.id.title);
        this.recyclerView = v.findViewById(R.id.rec_audio_recycler_view);
    }


    public RecommendAudioAdapter getAdapter() {
        return (RecommendAudioAdapter)recyclerView.getAdapter();
    }

    public TextView getTitle() {
        return title;
    }
}
